<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>拼图后台管理-后台管理</title>
<link rel="stylesheet" href="__PUBLIC_ADMIN_DIR__/css/pintuer.css">
<link rel="stylesheet" href="__PUBLIC_ADMIN_DIR__/css/admin.css">
<script src="__PUBLIC_ADMIN_DIR__/js/jquery.js"></script>
<script src="__PUBLIC_ADMIN_DIR__/js/pintuer.js"></script>
<script src="__PUBLIC_ADMIN_DIR__/js/respond.js"></script>
<script src="__PUBLIC_ADMIN_DIR__/js/admin.js"></script>
<link type="image/x-icon" href="/favicon.ico" rel="shortcut icon" />
<link href="/favicon.ico" rel="bookmark icon" />
<style>
	.add{
		margin-left: -100px;
		padding: 30px;
	}
</style>
</head>

<body>
<div class="admin">
  <div class="tab">
    <div class="tab-head">
      <ul class="tab-nav">
        <li class="active"><a href="#tab-set">修改分类信息</a></li>
      </ul>
    </div>
    <div class="tab-body add"> <br />
      <div class="tab-panel active" id="tab-set">
        <form method="post" class="form-x" action="__CONTROLLER__/dealEdit">
          <div class="form-group">
            <div class="label">
              <label for="sitename">分类名称</label>
            </div>
            <div class="field">
              <input type="text" class="input" id="name" name="cate_name" value="{$result.cate_name}" size="50" placeholder="分类名称" data-validate="required:请填写您的分类名称" />
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="sitename">所属类别</label>
            </div>
            <div class="field">
              <select class="select" name="cate_pid">
              	  <option value="0">主类别</option>
                  <foreach name='data' item='row'>
                  	<if condition="$result.cate_pid == $row.id ">
                  		<option value="{$row.id}" selected="selected">{$row.level|str_repeat='-',(###+1)*2}{$row.cate_name}</option>
                  	<else/>
                  		<option value="{$row.id}">{$row.level|str_repeat='-',(###+1)*2}{$row.cate_name}</option>
                  	</if>
                  </foreach>
              </select>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="readme">分类描述</label>
            </div>
            <div class="field">
              <textarea class="input" name="cate_desc" rows="5" cols="50" placeholder="请填写分类描述" data-validate="required:请填写分类描述">{$result.cate_desc}</textarea>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="siteurl">排序</label>
            </div>
            <div class="field">
              <input type="text" class="input" value="{$result.cate_sort}" id="sort" name="cate_sort" size="50" placeholder="请填写排序编号" data-validate="required:请填写排序编号" />
            </div>
          </div>
          <div class="form-button">
          	<input type="hidden" name="id" value="{$result.id}" />
            <button class="button bg-main" type="submit">提交</button>
          </div>
        </form>
      </div>
    </div>
  </div>
  <div style='height:20px; border-bottom:1px #DDD solid'></div>
</div>
</body>
</html>